#pragma once
#include"Actor.h"
#include<map>

class GamePlay :public Actor
{
public:
	GamePlay(int id, int64_t sock);
	virtual ~GamePlay();

	int getId();

	bool addCanSee(GamePlay* play);

	void removeCanSee(GamePlay* play);

	int64_t getSock();

	std::map<int,GamePlay*>& getCanSees();

	void setName(std::string name);
	std::string getName();
private:
	int m_id;
	int64_t m_sock;
	std::string m_name;
	std::map<int, GamePlay*> m_canSeeMaps;
};
